"DESCRIPTION 1"="When the computer is about to be shut down, it is possible that a buggy or older program can't be ended because it locks up."
"DESCRIPTION 2"="If this option is activated, the program is automatically terminated upon shut down."
"DESCRIPTION 3"="If this option is deactivated, Windows displays an error message asking the user to terminate a non-responding program manually or perform a shut down."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com/"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="Applies to all 32-bit Windows releases. Updated description."
"COMMENT 2"="More info @ MS TechNet: http://www.microsoft.com/technet/winnt/regtwk.asp"
"COMMENT 3"="More info @ MS TechNet: http://www.microsoft.com/technet/win2000/systeman.asp"
'Declaration of some constants
sP="HKCU\Control Panel\Desktop\"
sV1="AutoEndTasks"
'Called when the Plugin is started
Sub Plugin_Initialize
i=RegReadValue(sp & sv1)
if i=1 then SetUIElement 1,true
End Sub
'Called when the Plugin should validate the Data the user has entered
Sub Plugin_CheckData(ElementIndex)
End Sub
'Called when the Plugin should apply the changes
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
b=GetUIElement(1)
if b=true then
Call RegWriteValue(sp&sv1,1,1)
else
Call RegWriteValue(sp&sv1,0,1)
end if
End Sub
'Called when the Plugin is about to be removed from memory